<template lang="pug">
  keep-alive
    kalix-table(bizKey="HotlistsTeacher" title='推荐教师列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="targetURL"
    v-bind:bizDialog="HotlistsTeacherDialog"
    v-bind:toolbarBtnList="toolbarBtnList"
    v-bind:btnList="HotlistsTeacherBtnList")
  <!--v-bind:buttonPermissionPrefix="buttonPermissionPrefix"-->
  <!--bizSearch="HotlistsTeacherSearch"-->

</template>

<script type="text/ecmascript-6">
  import {HotlistsTeacherURL, HotlistsTeacherBtnPermissionPrefix} from '../../config.toml'
  import {HotlistsTeacherConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-hotliststeacher',
    components: {KalixTable},
    data() {
      return {
        targetURL: HotlistsTeacherURL + '/getAllHotlistsTeacher',
        tableFields: [
          {prop: 'uname', label: '授课教师'},
          // {prop: 'cname', label: '课程名称'},
          // {prop: 'classHour', label: '课时'},
          // {prop: 'credit', label: '学分'},
          // {prop: 'gname', label: '课程类别'},
          {prop: 'identify', label: '标识'}
        ],
        HotlistsTeacherDialog: [
          {id: 'add', dialog: 'HotlistsTeacherAdd'},
          {id: 'edit', dialog: 'HotlistsTeacherEdit'},
          {id: 'view', dialog: 'HotlistsTeacherView'}
        ],
        HotlistsTeacherBtnList: HotlistsTeacherConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: false, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ],
        buttonPermissionPrefix: HotlistsTeacherBtnPermissionPrefix
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
